package com.casic.ops.entity.vo.pipeline;

import com.casic.ops.entity.dto.ApplicationPipelineTaskStatisticsDTO;
import com.casic.ops.entity.vo.ApplicationPipelineTaskStatisticsMetricsVO;
import com.casic.ops.utils.Utils;
import lombok.Data;

@Data
public class PipelineStaticsticsMetricsVO {
    /**
     * 执行次数
     */
    private long execCount;

    /**
     * 成功次数
     */
    private long successCount;

    /**
     * 失败次数
     */
    private long failureCount;

    /**
     * 平均发布时长ms (成功)
     */
    private Long avgUsed;

    /**
     * 平均发布时长 (成功)
     */
    private String avgUsedInterval;

    @Override
    public String toString() {
        return "PipelineStaticsticsMetricsVO{" +
                "execCount=" + execCount +
                ", successCount=" + successCount +
                ", failureCount=" + failureCount +
                ", avgUsed=" + avgUsed +
                ", avgUsedInterval='" + avgUsedInterval + '\'' +
                '}';
    }
}
